﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tAdHocSubProcess")]
[XmlRoot("adHocSubProcess", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class AdHocSubProcess : SubProcess
{
    /// <remarks/>
    [XmlElement("completionCondition")]
    public Expression CompletionCondition { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("cancelRemainingInstances")]
    [DefaultValue(true)]
    public bool CancelRemainingInstances { get; set; } = true;

    /// <remarks/>
    [XmlAttribute("ordering")]
    public AdHocOrdering Ordering { get; set; } = default!;

    /// <remarks/>
    [XmlIgnore]
    public bool OrderingSpecified { get; set; } = default!;
}
